package com.agileai.esb.smc.controller.sersta;

import com.agileai.domain.DataParam;
import com.agileai.esb.smc.bizmoduler.sersta.SysInfomation8ContentManage;
import com.agileai.hotweb.controller.core.TreeAndContentManageEditHandler;
import com.agileai.hotweb.domain.FormSelectFactory;

public class ServiceInfomationEditHandler
        extends TreeAndContentManageEditHandler {
    public ServiceInfomationEditHandler() {
        super();
        this.serviceId = buildServiceId(SysInfomation8ContentManage.class);
        this.tabId = "ServiceInfomation";
        this.columnIdField = "SYSINFO_ID";
        this.contentIdField = "SERVICE_ID";
    }

    protected void processPageAttributes(DataParam param) {
    	setAttribute("ENABLE_BIZLOG",
                FormSelectFactory.create("BOOL_DEFINE")
                                 .addSelectedValue(getOperaAttributeValue("ENABLE_BIZLOG",
                                                                          "N")));
    }

    protected SysInfomation8ContentManage getService() {
        return (SysInfomation8ContentManage) this.lookupService(this.getServiceId());
    }
}
